<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/9/20
 * Time: 9:06
 */
$num1_GET("num1");
$num2_GET("num2");
?>
<html>
<body>
<form action ="cal.php" method="get">
<input type="text" name="num1" value="<?php echo $num1?>"/>
<select name="op">
    <option value="+" <?php echo $op=='+?'?>>>+</option>
    <option value="-" <?php echo $op=='-?'?>>>-</option>
    <option value="*" <?php echo $op=='*?'?>>>*</option>
    <option value="%" <?php echo $op=='%?'?>>%</option>
</select>
<input type="text" numa="num2" value="<?php echo $num2?>"/>
    =
<input type="text" name="result"/>
<button type="submit"> 计算</button>
</form>
</body>
</html>
